<%-- 
    Document   : editRemoveArticle
    Created on : 7-mag-2013, 10.31.27
    Author     : Giuseppe
--%>

<%@page import="java.util.List"%>
<%@page import="ejb.ArticoloUsato"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="wrapper.jsp" %>
<div class="container">
        <h2>Rimuovi e modifica articoli usati</h2>
        
        
            <div id="cornice">
         <form action="Controller" method="POST">
            <select name="idArticoloUsatoEdit">
            <%
            String idMod;
            List<ArticoloUsato> l = (List<ArticoloUsato>)session.getAttribute("artUsati");
            
            for(ArticoloUsato a:l) {
                idMod =a.getId().toString();
            %>
                <option  value="<%=idMod%>"><%=a.getNome()%></option><% }%>
            </select>
	    <input type="submit" value="modificaArtUsato" name="button"/>
        </form>
     </div>

   
   <hr width="600"> 
   
  
   <h3>Cancella Articolo Usato</h3>		            
       <form action="Controller" method="POST">
             Articolo:<select name="idArtUsato">
             <%
            String id;
             List<ArticoloUsato> articoliUsati =(List<ArticoloUsato>)session.getAttribute("artUsati");
                                                
             for(ArticoloUsato a:articoliUsati) {
                 id =a.getId().toString();
             %>
                 <option value="<%=id%>"><%=a.getNome()%></option><%}%>
            </select>
	    <input type="submit" value="cancellaArtUsato" name="button"/>
        </form>

</div>
</body>
